package com.gy.service;

import com.gy.mapper.LeiXingMapper;
import com.gy.pojo.LeiXing;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LeiXingServiceImpl implements LeiXingService {
    @Autowired
    LeiXingMapper leiXingMapper;


    @Override
    public List<LeiXing> selectLX() {
        return leiXingMapper.selectLX();
    }

    @Override
    public void addLX(LeiXing leiXing) {
        leiXingMapper.addLX(leiXing);
    }

    @Override
    public void deleteLXByName(String name) {
        leiXingMapper.deleteLXByName(name);
    }

    @Override
    public int selectMax() {
        return leiXingMapper.selectMax();
    }
}
